﻿using System;
using System.Threading;
using System.Windows.Forms;

namespace DrawgTest
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());
            //TaskTest.Method2();
            //TaskTest.Method7();
            TaskTest.Method8();
            GetResult();
            LogCommon.LogHelper.Info( Thread.CurrentThread.ManagedThreadId + "这是主线程");
            //Thread.Sleep(20000);
            if (TaskTest.task.IsCompleted)
            {

            }
        }

        public async static void GetResult()
        {
            var rt = await TaskTest.Method8();
        }
    }
}
